import request from "@/common/request"

//足迹接口
export function getArticleList(params) {
    return new request({
        url: '/v1/article/',
        method: 'get',
        data: params
    })
}
export function getAuthorInfo(articleId) {
    return new request({
        url: '/v1/article/selectUserInfoByArticleId',
        method: 'get',
        data:{
			"id":articleId
		}
    })
}


/**
 * 申请碳足迹
 * @param data
 * @returns {*}
 */
export function addArticle(data) {
    return new request({
        url: '/community/article/create',
        method: 'post',
        data:data
    })
}

/**
 * 申请碳足迹
 * @param data
 * @returns {*}
 */
export function getVideo(data) {
    return new request({
        url: '/community/video/page',
        method: 'get',
        data: data
    })
}
